/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hxg.portmgr.core.oper.snmp.oidgroup;

import hxg.portmgr.core.oper.snmp.param.Param;
import org.snmp4j.smi.OID;

/**
 *
 * @author hxg
 */
public enum ServerSoftwareRunOidEntry implements OidEntry,Param {

    hrSWRunName(new OID(".1.3.6.1.2.1.25.4.2.1.2")) {
        @Override
        public String chsname() {
            return "名称";
        }
    },
    hrSWRunPath(new OID(".1.3.6.1.2.1.25.4.2.1.4")) {
        @Override
        public String chsname() {
            return "路径";
        }
    },
    hrSWRunParameters(new OID(".1.3.6.1.2.1.25.4.2.1.5")) {
        @Override
        public String chsname() {
            return "参数";
        }
    },
    hrSWRunType(new OID(".1.3.6.1.2.1.25.4.2.1.6")) {
        @Override
        public String chsname() {
            return "方式";
        }
    },
    hrSWRunStatus(new OID(".1.3.6.1.2.1.25.4.2.1.7")) {
        @Override
        public String chsname() {
            return "状态";
        }
    },
    hrSWRunPerfCPU(new OID(".1.3.6.1.2.1.25.5.1.1.1")) {
        @Override
        public String chsname() {
            return "CPU";
        }
    },
    hrSWRunPerfMem(new OID(".1.3.6.1.2.1.25.5.1.1.2")) {
        @Override
        public String chsname() {
            return "内存";
        }
    };

    private ServerSoftwareRunOidEntry(OID oid) {
        this.oid = oid;
    }
    final OID oid;

    @Override
    public OID getOID() {
        return oid;
    }

    @Override
    public String oidValue() {
        return oid.toString();
    }

    @Override
    public String unit() {
        return "";
    }

    @Override
    public RemoteValueType remoteValueType() {
        return RemoteValueType.StringValue;
    }

    @Override
    public OID getAppendOID(OID appendOid) {
        return (new OID(oid)).append(appendOid);
    }

    @Override
    public String toString() {
        return chsname();
    }

    @Override
    public Param getParamType() {
        return this;
    }
    
    
}
